<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of PartnerModel
 *
 * @author Administrator
 */
namespace Qwadmin\Model;
use Think\Model;
class PartnerModel extends Model {
    
    
    
    /**
     * 获取所有可用的本地商家
     * @param type $ield
     * @return type
     */
    function getAvailableLocalStore($ield='*'){
        return M("Partner")->field($ield)->where(array('status'=>1,'exp_time'=>array('gt',date('Y-m-d'))))->select();
    }
}
